﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Ld.Client.Silverlight
{
    public partial class Bottom : UserControl
    {
        public Bottom()
        {
            InitializeComponent();
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            string[] versionInfo = System.Reflection.Assembly.GetExecutingAssembly().FullName.Split(',');
            if (versionInfo.Length >= 1
                && !string.IsNullOrEmpty(versionInfo[1])
                && versionInfo[1].Contains("Version="))
            {
                this.txbVersion.Text = "v" + versionInfo[1].Replace("Version=", string.Empty);
            }
        }
    }
}
